package com.party.service.study;

import com.party.common.Page;
import com.party.model.Curriculum;

import java.util.List;

/**
 * Created by 011926 on 2014/9/23.
 */
public interface CurriculumService
{
    public int add(Curriculum curriculum);

    public int delete(Integer id);

    public Curriculum getById(Integer id);

    public List<Curriculum> getByIds(List<Integer> ids);

    /**
     * 获得用户学习的课程
     * @param uid
     * @return
     */
    public List<Curriculum> getByUid(Integer uid);

    /**
     * 获得用户没有考试过的，并且已经学习完的课程
     * @param uid
     * @return
     */
    public List<Curriculum> getByUidNew(Integer uid);

    /**
     * 获得用户已经考试过的
     * @param uid
     * @return
     */
    public List<Curriculum> getByUidOld(Integer uid);

    /**
     * 分页获取
     * @param pageSize
     * @param pageNumber
     * @return
     */
    public Page getList(Curriculum curriculum,int pageSize, int pageNumber);

    public int edit(Curriculum curriculum);

    public List<Curriculum> getAll();

    public List<Curriculum> getByContentId(Integer id);
}
